package com.itcast.mybatis;

import com.itcast.mybatis.entity.Payment;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description 描述
 * @Date 2020/7/9 11:08
 * @Author taojiangbing
 */
public class TestSpring {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(BeanConfig.class);
        Payment p = context.getBean(Payment.class);
        System.out.println(p);
    }
}
